import baozou1_sum
import baozou2_sum
import baozou3_sum
import daishu1_sum
import daishu2_sum
import weiyueyun_sum
import xigua1_sum
import xigua2_sum
import zhangdu1_sum
import zhangdu2_sum
import wangpai_sum
import zhangzhongyun1_sum
import zhangzhongyun2_sum
import tiantianyun1_sum
import tiantianyun2_sum
import zhuishuyun_sum
import weixiaobao_sum
import youshuge_sum
import qire_sum
import excel
import time
import threading
def aa():
    baozou1_sum.baozou1()
    baozou2_sum.baozou2()
    baozou3_sum.baozou3()
    daishu1_sum.daishu1()
    daishu2_sum.daishu2()

def bb():
    youshuge_sum.Inovel_test()

def cc():
    weiyueyun_sum.weiyueyun()
    weixiaobao_sum.weixiaobao()
    qire_sum.qire()

def dd():
    zhuishuyun_sum.zhuishuyun()

def ff():
    xigua1_sum.xigua1()
    xigua2_sum.xigua2()
    wangpai_sum.wangpai()
    zhangdu1_sum.zhangdu1()
    zhangdu2_sum.zhangdu2()

def ee():
    zhangzhongyun1_sum.zhangzhongyun1()
    zhangzhongyun2_sum.zhangzhongyun2()
    tiantianyun1_sum.tiantianyun1_sum()
    tiantianyun2_sum.tiantianyun2_sum()

threads = []
try:
    t1 = threading.Thread(target=aa,)
    threads.append(t1)
    t2 = threading.Thread(target=bb,)
    threads.append(t2)
    t3 = threading.Thread(target=cc,)
    threads.append(t3)
    t4 = threading.Thread(target=dd, )
    threads.append(t4)
    t5 = threading.Thread(target=ee, )
    threads.append(t5)
    t6 = threading.Thread(target=ff, )
    threads.append(t6)
except Exception:
    print("pass")

if __name__ == '__main__':
    for t in threads:

        t.start()       # t.setDaemon(True)
        print("执行线程{}".format(t))
        t.join()

    excel.write_data_to_excel()
